<template>
  <div class="serve-swap">
    <h3>活动与服务</h3>
    <ul>
      <li
        class="privilege-items"
        v-for="(supports, index) in shopLis.supports"
        :key="index"
      >
        <p>
          <b class="privilege">{{ supports.name }}</b
          >{{ supports.content }}
        </p>
      </li>
    </ul>
  </div>
</template>

<script>
import { mapState } from 'vuex'
export default {
  computed: {
    ...mapState(['shopLis'])
  }
}
</script>

<style lang="less" scoped>
.serve-swap {
  overflow: hidden;
  background-color: #fff;
  padding: 10px;
  margin-top: 13px;
  h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 10px;
  }
  .privilege-items {
    margin: 15px 0;
  }
  p {
    font-size: 14px;
    b {
      display: inline-block;
      background-color: orange;
      color: #fff;
      border-radius: 5px;
      width: 30px;
      text-align: center;
      line-height: 15px;
      margin-right: 10px;
      font-weight: 550;
      font-size: 14px;
      padding: 2px;
    }
  }
}
</style>
